<template>
  <div class="bannerdiv" :style="{ backgroundImage: `url(${src})` }">
    <img class="banner" :src="src" alt="" />
  </div>
</template>

<script lang="ts">
export default {
  props: ["src"],
};
</script>

<style  scoped>
.banner {
  object-fit: contain;
  vertical-align: middle;
  display: inline-block;
  z-index: -1;
  opacity: 0;
}
.bannerdiv {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  width: 100%;
}
</style>
